import { defineEventHandler } from 'h3';

export default defineEventHandler(async () => {
  // 模拟当前状态
  const currentState = {
    state: 'idle',
    version: 5,
  };

  return {
    code: 0,
    data: currentState,
    message: '获取当前状态成功',
  };
});
